package com.lizemin.clients;

import com.lizemin.req.CreateOrderReq;
import com.lizemin.resp.OrderResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author lzm
 * @date 2025/4/19 21:27
 * @description
 */
@FeignClient(name = "ORDER-SERVICE")
public interface OrderClient {

    @PostMapping("/createOrder")
    String createOrder(@RequestBody CreateOrderReq createOrderReq);

    @GetMapping("/listOrders")
    OrderResp listOrders();

    @GetMapping("/getConfig")
    void getConfig();
}
